﻿using UnityEngine;
using System.Collections;

[RequireComponent(typeof(EdgeCollider2D))]
[RequireComponent(typeof(Ferr2D_Path))]
public class Ferr2D_Collider2D : MonoBehaviour {

	void Start () {
        Ferr2D_Path path = GetComponent<Ferr2D_Path>();
        ((EdgeCollider2D)collider2D).points = path.pathVerts.ToArray();
	}
}
